package cn.edu.sgu.www.mhxysy.service.xingyin.impl;

import cn.edu.sgu.www.mhxysy.entity.xingyin.XingyinSkillType;
import cn.edu.sgu.www.mhxysy.mapper.xingyin.XingyinSkillTypeMapper;
import cn.edu.sgu.www.mhxysy.service.xingyin.XingyinSkillTypeService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * @author 沐雨橙风ιε
 * @version 1.0
 */
@Service
public class XingyinSkillTypeServiceImpl implements XingyinSkillTypeService {

    private final XingyinSkillTypeMapper xingyinSkillTypeMapper;

    @Autowired
    public XingyinSkillTypeServiceImpl(XingyinSkillTypeMapper xingyinSkillTypeMapper) {
        this.xingyinSkillTypeMapper = xingyinSkillTypeMapper;
    }

    @Override
    public List<XingyinSkillType> selectAll() {
        return xingyinSkillTypeMapper.selectList(null);
    }

    @Override
    public XingyinSkillType selectById(Integer id) {
        return xingyinSkillTypeMapper.selectById(id);
    }

}